﻿<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp"%>
<input type="hidden" id="pageNo" value="${page.pageNo }" />
<input type="hidden" id="pageSize" value="${page.pageSize }" />
<input type="hidden" id="totalCount" value="${page.totalCount }" />
<input type="hidden" id="totalPages" value="${page.totalPages }" />
<c:if test="${fn:length(folder.childrenList)>0 }">
	<c:forEach items="${folder.childrenList }" var="folder">
		<li>
			<div class="rfileName">
				<a href="/file/detail/${folder.id }"><i
					class="iconfont icon-iconfontwenjian2copy"></i> <span>${folder.name }---</span></a>
			</div>
			<div class="rfileBtn">
				<i class="iconfont icon-weibiaoti2fuzhi03" icontip='重新命名'
					data-toggle="modal" data-target="#editFileName"
					dataid="${folder.id }"></i> <i class="iconfont icon-shanchu2" icontip='删除' data-toggle="modal" data-target="${fn:length(folder.fileList) > 0 ? '#hasFolder' : '#deleteFolder'}" dataid="${folder.id }"></i>
			</div>
			<div class="rfileTime">创建时间：${folder.createTime }</div>
			<div class="rfileNum">共${fn:length(folder.fileList)}个文件</div>
		</li>
	</c:forEach>
</c:if>
<c:forEach items="${page.result }" var="file">
	<li>
		<div class="rfileName">
			<input type="checkbox" name="selectFile" id="checkbox-${file.id}"
				value="${file.id }" class="regular-checkbox"> <label
				for="checkbox-${file.id}"></label>
				<span style="margin-left: 0;"><a href="/file/downFile/${file.id }">${file.name }</a></span>
		</div>
		<div class="rfileSize">文件大小：<fmt:formatNumber type="number" value="${file.size/1024 }" pattern="0.00" maxFractionDigits="2"/>M</div>
		<div class="rfileTime">时间：${file.createTime }</div>
		<div class="rfileBtn">
			<i class="iconfont icon-shanchu2" icontip='删除' dataid="${file.id }" data-toggle="modal" data-target="#delFileModal"></i>
			<i class="iconfont icon-shangchuan" icontip='重新上传' name="fileClass" id="updateFile_${file.id }"></i> 
			<a href="/file/downFile/${file.id }"><i class="iconfont icon-download" icontip='下载'></i></a>
		</div>
	</li>
</c:forEach>
